<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>仙魂珠属性</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="/css/public.css" media="all">
</head>
<body>
<div class="layuimini-container" id="app">
    <div class="layuimini-main">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>仙魂珠属性</legend>
        </fieldset>

        <div class="layui-form"  lay-filter="detail-form">

            <div class="layui-form-item">
                <label class="layui-form-label">仙魂珠ID</label>
                <div class="layui-input-block">
                    <input type="number"  name="FsbId" v-model="formData.FsbId" autocomplete="off" placeholder="" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">经验</label>
                <div class="layui-input-block">
                    <input type="number" name="FsbCurrExp" v-model="formData.FsbCurrExp" autocomplete="off" placeholder="" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script src="/js/common.js?v=5" charset="utf-8"></script>
<script>
    var _this = null,form=null
    new Vue({
        el:"#app",
        data:{
           formData:{
               FsbId:1, // 1-60
               FsbCurrExp:0, // 0 1 2 3 4 5
           }
        },
        created(){
            _this = this
        },
        updated:function(){
            form.render()
        },
        methods:{
        },
        mounted:function(){
            var _this = this;

            layui.use(['form','jquery'], function () {
                form = layui.form;
                layer = layui.layer;
                $ = layui.jquery;

                form.render();

                form.on("submit(submit)",function (data) {
                    var formData = data.field
                    console.log('查看仙魂珠属性',data.field)
                    console.log('查看仙魂珠属性',formData)
                    parent.fsbAttrSetCallback(formData)
                    var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                    return false;
                })

            });

        }
    })
</script>
</body>
</html>